
import store from 'store';

export default function injectStore(Component) {

  return class {
    constructor(props) {
      return new Component({store, ...props});
    }
  };
}
